#ifndef SEARCHER_H
#define SEARCHER_H

#include <QDialog>
#include <QWidget>
#include <QGridLayout>
#include "../settings/hotkey.h"
#include "editer_bar.h"
#include "../unitls/mtitlebar.h"
namespace Ui {
class searcher;
}

class searcher : public QDialog
{
    Q_OBJECT

public:
    explicit searcher(QWidget *parent = 0);
    ~searcher();
    void show();
    void hide();
private:
    Ui::searcher *ui;
    void keyPressEvent(QKeyEvent *e);
    void showEvent(QShowEvent* e);
    void InitUI();

    int origin_x;
    int origin_y;
    QWidget* search_current_form;
    QWidget* search_all_form;
    WidgetPar *selMainWidget ;
};

#endif // SEARCHER_H
